package org.bhf.validation;

import org.bhf.validation.annotations.NotNull;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * More complex object.
 */
public class AddressBook implements Serializable
{
    private List<Person> people = new ArrayList<Person>();
    private Person owner;

    @NotNull
    public Person getOwner()
    {
        return owner;
    }

    public void setOwner( Person owner )
    {
        this.owner = owner;
    }

    @NotNull
    public List<Person> getPeople()
    {
        return people;
    }

    public void setPeople( List<Person> people )
    {
        this.people = people;
    }
}
